package com.probox.common.entity.service.customer;

import java.util.HashMap;
import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.probox.common.entity.domain.customer.CustomerHiddenLabel;

/**
 * 客户潜藏标签Service接口
 *
 * @author ruoyi
 * @date 2023-02-04
 */
public interface ICustomerHiddenLabelService extends IService<CustomerHiddenLabel> {


    /**
     * 统计这个客户的潜在标签
     *
     * @param customerId
     * @return
     */
    public List<HashMap> selectHiddenTages(Long customerId);

    /**
     * 根据客户id查询潜在标签
     *
     * @param customerId
     * @return
     */
    public List<CustomerHiddenLabel> selectLabelByCustomerId(Long customerId);

    /**
     * 给用户带上潜在标签
     *
     * @param customerId
     * @param productId
     */
    public void addOrUpdateLabel(Long customerId, String productType, Long productId, String tagsName);


    /**
     * 查询客户潜藏标签
     *
     * @param hiddenId 客户潜藏标签ID
     * @return 客户潜藏标签
     */
    public CustomerHiddenLabel selectCustomerHiddenLabelById(Long hiddenId);


    /**
     * 查询客户潜藏标签列表
     *
     * @param customerHiddenLabel 客户潜藏标签
     * @return 客户潜藏标签集合
     */
    public List<CustomerHiddenLabel> queryList(CustomerHiddenLabel customerHiddenLabel);

    /**
     * 新增客户潜藏标签
     *
     * @param customerHiddenLabel 客户潜藏标签
     * @return 结果
     */
    public boolean insertCustomerHiddenLabel(CustomerHiddenLabel customerHiddenLabel);

    /**
     * 修改客户潜藏标签
     *
     * @param customerHiddenLabel 客户潜藏标签
     * @return 结果
     */
    public boolean updateCustomerHiddenLabel(CustomerHiddenLabel customerHiddenLabel);

    /**
     * 批量删除客户潜藏标签
     *
     * @param hiddenIds 需要删除的客户潜藏标签ID
     * @return 结果
     */
    public boolean deleteCustomerHiddenLabelByIds(Long[] hiddenIds);


}
